﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudStorageLight.DesktopTool
{
    public static class DocumentImageConverterRepository
    {
        public static DocumentImageConverter GetConverter(string type)
        {
            switch (type)
            {
                case "ppt":
                case "pptx":
                    return new PresentationImageConverter();
                case "doc":
                case "docx":
                    return new WordImageConverter();
                case "xls":
                case "xlsx":
                    return new ExcelImageConverter();

                default:
                    return new GeneralImageConverter();
            }
        }
    }

}
